##
# This script set ios specific flags (GNU GCC)
#
##
Import('env')

# setting of IOS is almost the same as Darwin(MAC OSX)
env.SConscript('../darwin/SConscript')

sys_version = env.get('SYS_VERSION')
if env.get('TARGET_ARCH') in ['i386', 'x86_64']:  # Simulator
    flag = '-mios-simulator-version-min=' + sys_version
else:
    flag = '-miphoneos-version-min=' + sys_version
env.AppendUnique(CCFLAGS=[flag])
env.AppendUnique(LINKFLAGS=[flag])
